class Ledger:
    # id 类别 支出/收入 账户 金额 时间 说明
    def __init__(self, l_id, l_type, in_or_out, l_account, amount, l_time, remark):
        self.id = l_id
        self.type = l_type
        self.in_or_out = in_or_out
        self.account = l_account
        self.amount = amount
        self.time = l_time
        self.remork = remark


    def __str__(self):
        spacing = "\t"
        return (f"{self.id}{spacing}{self.type}{spacing}{self.in_or_out}{spacing}"
                f"{self.account}{spacing}{self.amount}{spacing}"
                f"{self.time}{spacing}{self.remork}\t\n")
